/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 28px;
    text-align: center;
    margin-bottom: 40px;
    color: #333;
}

.cart_item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-orange {
    background-color: orange;
    color: white;
}

.btn-orange:hover {
    background-color: #ff8c00;
}

.btn-gray {
    background-color: #ccc;
    color: #333;
}

.btn-gray:hover {
    background-color: #aaa;
}

/* 响应式工具类 */
.flex {
    display: flex;
}

.flex-wrap {
    flex-wrap: wrap;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.align-center {
    align-items: center;
}

.grid {
    display: grid;
}

.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.grid-cols-5 {
    grid-template-columns: repeat(5, 1fr);
}

@media (max-width: 768px) {
    .md-cols-1 {
        grid-template-columns: 1fr;
    }

    .md-flex-col {
        flex-direction: column;
    }
}

/* 导航栏 */
.header {
    background-color: #333;
    color: white;
    padding: 15px 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    font-size: 24px;
    font-weight: bold;
}

.header-nav ul {
    list-style: none;
    display: flex;
}

.header-nav ul li {
    margin-left: 20px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.header-nav ul li:hover,
.header-nav ul li.active {
    color: orange;
}

.header-actions {
    display: flex;
    align-items: center;
}

.header-actions span {
    margin-left: 15px;
    cursor: pointer;
}

/* 移动端菜单 */
.mobile-menu {
    display: none;
}

@media (max-width: 768px) {

    .header-nav,
    .header-actions {
        display: none;
    }

    .mobile-menu {
        display: block;
        font-size: 24px;
        cursor: pointer;
    }
}

/* 轮播图 */
.banner {
    height: 500px;
    background-image: url('https://picsum.photos/id/1/1920/1080');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.banner h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.banner p {
    font-size: 20px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .banner h1 {
        font-size: 32px;
    }

    .banner p {
        font-size: 16px;
    }
}

/* 数据统计 */
.stats {
    padding: 60px 0;
    background-color: #f8f8f8;
}

.stats-grid {
    grid-gap: 30px;
    text-align: center;
}

.stats-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.stats-item img {
    width: 130px;
    height: 130px;
}

.stats-number {
    font-size: 36px;
    font-weight: bold;
    color: orange;
    margin-bottom: 10px;
}

.stats-text {
    font-size: 16px;
    margin-top: 1.9rem;
}

/* 关于我们 */
.about {
    padding: 80px 0;
}

.about-content {
    grid-gap: 40px;
}

.about-text {
    padding-right: 20px;
}

.about-text h2 {
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 30px;
}

.about-image img {
    /* width: 100%; */
    width: 626px;
    height: auto;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .about-text {
        padding-right: 0;
        margin-bottom: 30px;
    }
}

/* 热门产品 */
.products {
    padding: 80px 0;
}

.products-grid {
    grid-gap: 20px;
}

.product-card {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    height: 200px;
    overflow: hidden;
    padding: 30px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 15px;
}

.product-name {
    font-size: 18px;
    margin-bottom: 5px;
}

.product-price {
    font-size: 16px;
    font-weight: bold;
    color: orange;
}

@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* 服务优势 */
.services {
    padding: 80px 0;
    background-color: #f8f8f8;
}

.services-grid {
    grid-gap: 30px;
}

.service-card {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    font-size: 48px;
    color: orange;
    margin-bottom: 20px;
}

.service-title {
    font-size: 22px;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* 团队介绍 */
.team {
    padding: 80px 0;
}

.team-image {
    margin-bottom: 40px;
}

.team-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.team-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* 客户评价 */
.reviews {
    padding: 80px 0;
    background-color: #f8f8f8;
}

.reviews-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 20px;
}

.review-card {
    min-width: 300px;
    max-width: 300px;
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin-right: 20px;
    scroll-snap-align: start;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.review-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-name {
    font-size: 18px;
    font-weight: bold;
}

.review-rating {
    color: orange;
    margin-top: 5px;
}

/* 新闻动态 */
.news {
    padding: 80px 0;
}

.news-grid {
    grid-gap: 30px;
}

.news-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-image {
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-info {
    padding: 20px;
}

.news-date {
    color: #666;
    margin-bottom: 10px;
}

.news-title {
    font-size: 20px;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

/* 页脚 */
.footer {
    background-color: #333;
    color: white;
    padding: 60px 0;
}

.footer-grid {
    grid-gap: 40px;
}

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: orange;
}

.footer-bottom {
    margin-top: 40px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

 .news-container {
      width: 90%;
      max-width: 1200px;
      margin: 40px auto;
    }
    .news-container h2 {
      text-align: center;
      margin-bottom: 30px;
      font-size: 28px;
      font-weight: 600;
    }
    .news-item {
      display: flex;
      flex-direction: column;
      border: 1px solid #eee;
      border-radius: 6px;
      overflow: hidden;
      box-shadow: 0 2px 6px rgba(0,0,0,0.05);
      margin-top: 20px;
    }
    .news-item img {
      width: 100%;
      height: auto;
      display: block; 
      /* 防止图片底部留白 */
    }
    .news-content {
      padding: 20px;
    }
    .news-content h3 {
      font-size: 18px;
      margin-bottom: 10px;
      font-weight: 600;
      line-height: 1.2;
    }
    .news-content p {
      font-size: 14px;
      color: #666;
      margin-bottom: 10px;
    }
    .news-content .date {
      font-size: 12px;
      color: #999;
      text-align: right;
      display: block;
    }
    .more-btn {
      text-align: right;
      margin-top: 20px;
    }
    .more-btn a {
      text-decoration: none;
      color: #007bff;
      font-size: 14px;
    }

    /* 响应式适配：平板及以上 */
    @media (min-width: 768px) {
      /* .news-list {
        grid-template-columns: 1fr 1fr;
      } */
      .news-content h3 {
        font-size: 20px;
      }
    }
    /* 桌面端适配 */
    @media (min-width: 1024px) {
      /* .news-list {
        grid-template-columns: 1fr 1fr 1fr;
      } */
      .news-item {
        flex-direction: row;
      }
      .news-item img {
        width: 35%;
        height: auto;
      }
      .news-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
      }
    }